HSV, HSL, HCY: wrap hue around during conversion to RGB
authorEll <ell_se@yahoo.com>
Mon, 18 May 2020 06:53:58 +0000 (09:53 +0300)
committerEll <ell_se@yahoo.com>
Mon, 18 May 2020 06:59:11 +0000 (09:59 +0300)
commitfcebc451c295fc761002ebd1d5851bbb3a43315d
tree649497c4e9d91ac0c813c5b61ad37d00279bb3f7
parent51437f216dbbef80f9bf661dd152452083119349
HSV, HSL, HCY: wrap hue around during conversion to RGB

In the conversions from HSV, HSL, and HCY to RGB, wrap the hue
value around to the [0,1) range, instead of producing unspecified
results outside this range.  In particular, hue=1.0 may arise when
going through lower precision, such as when decomposing/recomposing
an 8-bit image in GIMP (see gimp#5097).
extensions/HCY.c
extensions/HSL.c
extensions/HSV.c